package com.gitee.wsl.logger.printer

import com.gitee.wsl.logger.LogLevel
import com.gitee.wsl.logger.LogPrinter

object PrintLogPrinter : LogPrinter {
    override fun log(level: LogLevel, tag: String, messageAny: Any?, throwable: Throwable?) {
        println("$tag::$level-> ${messageAny?:throwable?.printStackTrace()}")
    }
}

val LogPrinter.Companion.Print get() = PrintLogPrinter